import com.jiang.pojo.User;
import com.jiang.service.Userservice;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package PACKAGE_NAME
 * @Description:
 * @Date 2022/6/7 11:11
 */
public class test2 {

    @Test
    public void test1user() {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        Userservice service1 = (Userservice) context.getBean("service1");

//        List<User> userALL = service1.findUserALL();
//        System.out.println(userALL);
        User user = new User();
        user.setId(13);
        user.setName("聂聂聂");
        service1.UpdateUser(user);
    }
}
